Optimal. Leaf size=44 \[ \frac {b n \text {Li}_2\left (-\frac {e}{d x}\right )}{e}-\frac {\log \left (\frac {e}{d x}+1\right ) \left (a+b \log \left (c x^n\right )\right )}{e} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.07, antiderivative size = 44, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.087, Rules used = {2337, 2391} \[ \frac {b n \text {PolyLog}\left (2,-\frac {e}{d x}\right )}{e}-\frac {\log \left (\frac {e}{d x}+1\right ) \left (a+b \log \left (c x^n\right )\right )}{e} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2337
Rule 2391
Rubi steps
\begin {align*} \int \frac {a+b \log \left (c x^n\right )}{\left (d+\frac {e}{x}\right ) x^2} \, dx &=-\frac {\log \left (1+\frac {e}{d x}\right ) \left (a+b \log \left (c x^n\right )\right )}{e}+\frac {(b n) \int \frac {\log \left (1+\frac {e}{d x}\right )}{x} \, dx}{e}\\ &=-\frac {\log \left (1+\frac {e}{d x}\right ) \left (a+b \log \left (c x^n\right )\right )}{e}+\frac {b n \text {Li}_2\left (-\frac {e}{d x}\right )}{e}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 63, normalized size = 1.43 \[ \frac {\left (a+b \log \left (c x^n\right )\right ) \left (a+b \log \left (c x^n\right )-2 b n \log \left (\frac {d x}{e}+1\right )\right )}{2 b e n}-\frac {b n \text {Li}_2\left (-\frac {d x}{e}\right )}{e} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.41, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {b \log \left (c x^{n}\right ) + a}{d x^{2} + e x}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {b \log \left (c x^{n}\right ) + a}{{\left (d + \frac {e}{x}\right )} x^{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.18, size = 336, normalized size = 7.64 \[ -\frac {i \pi b \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right ) \ln \relax (x )}{2 e}+\frac {i \pi b \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right ) \ln \left (d x +e \right )}{2 e}+\frac {i \pi b \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \ln \relax (x )}{2 e}-\frac {i \pi b \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \ln \left (d x +e \right )}{2 e}+\frac {i \pi b \,\mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \ln \relax (x )}{2 e}-\frac {i \pi b \,\mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \ln \left (d x +e \right )}{2 e}-\frac {i \pi b \mathrm {csgn}\left (i c \,x^{n}\right )^{3} \ln \relax (x )}{2 e}+\frac {i \pi b \mathrm {csgn}\left (i c \,x^{n}\right )^{3} \ln \left (d x +e \right )}{2 e}-\frac {b n \ln \relax (x )^{2}}{2 e}+\frac {b n \ln \left (-\frac {d x}{e}\right ) \ln \left (d x +e \right )}{e}+\frac {b n \dilog \left (-\frac {d x}{e}\right )}{e}+\frac {b \ln \relax (c ) \ln \relax (x )}{e}-\frac {b \ln \relax (c ) \ln \left (d x +e \right )}{e}+\frac {b \ln \relax (x ) \ln \left (x^{n}\right )}{e}-\frac {b \ln \left (x^{n}\right ) \ln \left (d x +e \right )}{e}+\frac {a \ln \relax (x )}{e}-\frac {a \ln \left (d x +e \right )}{e} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ -a {\left (\frac {\log \left (d x + e\right )}{e} - \frac {\log \relax (x)}{e}\right )} + b \int \frac {\log \relax (c) + \log \left (x^{n}\right )}{d x^{2} + e x}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.02 \[ \int \frac {a+b\,\ln \left (c\,x^n\right )}{x^2\,\left (d+\frac {e}{x}\right )} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [C] time = 14.69, size = 156, normalized size = 3.55 \[ \frac {2 a d \left (\begin {cases} - \frac {x}{e} - \frac {1}{2 d} & \text {for}\: d = 0 \\\frac {\log {\left (2 d x \right )}}{2 d} & \text {otherwise} \end {cases}\right )}{e} - \frac {2 a d \left (\begin {cases} \frac {x}{e} + \frac {1}{2 d} & \text {for}\: d = 0 \\\frac {\log {\left (2 d x + 2 e \right )}}{2 d} & \text {otherwise} \end {cases}\right )}{e} + b n \left (\begin {cases} - \frac {1}{d x} & \text {for}\: e = 0 \\\frac {\begin {cases} \log {\relax (d )} \log {\relax (x )} + \operatorname {Li}_{2}\left (\frac {e e^{i \pi }}{d x}\right ) & \text {for}\: \left |{x}\right | < 1 \\- \log {\relax (d )} \log {\left (\frac {1}{x} \right )} + \operatorname {Li}_{2}\left (\frac {e e^{i \pi }}{d x}\right ) & \text {for}\: \frac {1}{\left |{x}\right |} < 1 \\- {G_{2, 2}^{2, 0}\left (\begin {matrix} & 1, 1 \\0, 0 & \end {matrix} \middle | {x} \right )} \log {\relax (d )} + {G_{2, 2}^{0, 2}\left (\begin {matrix} 1, 1 & \\ & 0, 0 \end {matrix} \middle | {x} \right )} \log {\relax (d )} + \operatorname {Li}_{2}\left (\frac {e e^{i \pi }}{d x}\right ) & \text {otherwise} \end {cases}}{e} & \text {otherwise} \end {cases}\right ) - b \left (\begin {cases} \frac {1}{d x} & \text {for}\: e = 0 \\\frac {\log {\left (d + \frac {e}{x} \right )}}{e} & \text {otherwise} \end {cases}\right ) \log {\left (c x^{n} \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________